<template>
  <el-dialog title="开通熙隆VIP" :lock-scroll="false" :visible.sync="visible" customClass="openvip">
    <div class="openvip-view">
      <p class="year-card"><i></i>年卡365天</p>
      <div class="card-layout1 clearfix">
        <p> 优惠券已使用 <em>1</em>张 - <em> 200</em>熙币</p>
        <span>设置></span>
      </div>
      <div class="card-layout2 clearfix">
        <p> 现价：<em>999熙币</em></p>
        <span>原价：<em>9998</em>熙币 </span>
      </div>
      <button class="now-k">立即开通</button>
      <div class="card-footer">
        <p>熙币不足，还需 <em>1999.49</em>个熙币，请 <a href="">充值</a></p>
      </div>
    </div>
  </el-dialog>
</template>

<script>
  export default {
    name: 'recharge-vip',
    data () {
      return {
        visible: false,
      }
    },
    props: {
      checkList: {
        default: false
      }
    },
    methods: {
      showToggle () {
        this.visible = !this.visible
      }
    }
  }
</script>

<style lang="scss">
  .openvip {
    width: 380px;
    height: 343px;
    background-color: #ffffff;
    border-radius: 5px;
    .el-dialog__header {
      text-align: center;
      padding-top: 40px;
    }
    .el-dialog__title {
      font-size: 18px;
      font-weight: normal;
      font-stretch: normal;
      color: #333333;
      position: relative;
      &:before {
        position: absolute;
        content: '';
        width: 20px;
        height: 1px;
        background: #333333;
        left: -30px;
        top: 10px;
      }
      &:after {
        position: absolute;
        content: '';
        width: 20px;
        height: 1px;
        background: #333333;
        right: -30px;
        top: 10px;
      }
    }
    .el-dialog__body {
      padding: 20px 44px 20px;
    }
    .openvip-view {
      .year-card {
        text-align: center;
        margin-bottom: 20px;
        i {
          width: 23px;
          height: 17px;
          display: inline-block;
          margin-right: 5px;
          background: url("../../static/img/vipcard.png");
          vertical-align: top;
          margin-top: 6px;
        }
        font-size: 16px;
        color: #1768b3;
      }
      .card-layout1 {
        font-size: 14px;
        color: #858585;
        p {
          float: left;
          em {
            color: #1768b3;
          }
        }
        span {
          float: right;
          font-size: 14px;
          color: #1768b3;
        }
      }
      .card-layout2 {
        margin-top: 10px;
        p {
          float: left;
          font-size: 16px;
          color: #666666;
          em {
            font-size: 20px;
            color: #1768b3;
          }
        }
        span {
          float: right;
          padding-top: 7px;
          font-size: 14px;
          color: #999999;
        }
      }
      .now-k {
        width: 286px;
        display: block;
        margin: 15px auto 0;
        height: 48px;
        background-color: #1768b3;
        border-radius: 3px;
        color: #ffffff;
      }
      .card-footer{
        margin-top: 8px;
        text-align: right;
        font-size: 12px;
        color: #999999;
        em{
          color: #de4414;
        }
        a{
          color: #1768b3;
        }
      }
    }
  }
</style>
